package xzy.com.entity.domain;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 
* @Title: Loginfo
* @Description:日志管理实体类
* @author: liyang
* @date 2020年12月7日 下午2:12:20
 */
@TableName("tb_loginfo")
public class Loginfo {
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	private String account;// 账号
	private String ip;// ip地址
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date loginTime;// 登录时间
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	@Override
	public String toString() {
		return "Loginfo [id=" + id + ", account=" + account + ", ip=" + ip + ", loginTime=" + loginTime + "]";
	}
	
}
